<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
        
        <?php
            echo $this->session->flashdata('message');
            echo './share/'.$this->session->userdata('mobilephone').'/';
        ?>    
        
        <div>Dashboard</div>
        
        <p>
            <form method="post" enctype="multipart/form-data" action="<?php echo site_url('pengguna/upload'); ?>">
                <input name="userfile" size="20" type="file">
                <input type="submit" value="Unggah File">
            </form>
        </p>
        
        <p>
            <form action="<?php echo base_url().'index.php/pengguna/logout/'; ?>" method="post"> 
                <input type="submit" value="Logout">
            </form>
        </p>
        
        <p>
            <p>Files</p>
            <p>
                <table cellspacing="0" style="width: 100%">
                    <tr>
                        <td>ID BERKAS</td>
                        <td>NAMA BERKAS</td>
                        <td>UKURAN BERKAS</td>
                        <td>TANGGAL UNGGAH BERKAS</td>
                        <td>OPTION</td>
                    </tr>
                    <?php 
                    if (isset($daftarfile)) {
                    foreach($daftarfile as $item){?>
                    
                    <tr>
                        <form action="<?php echo base_url().'index.php/pengguna/order/'; ?>" method="post">
                        <input type="hidden" name="idberkas" value="<?php echo $item->PB_IDBERKAS ?>" />
                        <td><?php echo $item->PB_IDBERKAS ?></td>
                        <td><?php echo $item->PB_NAMABERKAS; ?></td>
                        <td><?php echo $item->PB_UKRNBERKAS; ?></td>
                        <td><?php echo $item->PB_TGLUGHBERKAS; ?></td> 
                        <td><input name="Submit1" type="submit" value="order to print"> | <a href="<?php echo base_url().'index.php/pengguna/download/'.$item->PB_NAMABERKAS; ?>">download</a></td>
                        </form>
                    </tr>
                    
                    <?php }
                    } ?>
                </table>
            </p>
        </p>
        
        <p>
            <p>Order history</p>
            <p>
                <table cellspacing="0" style="width: 100%">
                    
                    <tr>
                        <td>ID ORDER</td>
                        <td>NAMA BERKAS</td>
                        <td>ORDER REQUEST</td>
                        <td>TANGGAL ORDER</td>
                        <td>OPTION</td>
                    </tr>
                    
                    <?php 
                    if (isset($daftarorder)) {
                    foreach($daftarorder as $item){?>
                    
                    <tr>
                        <form action="<?php echo base_url().'index.php/pengguna/order/'; ?>" method="post">
                        <input type="hidden" name="idberkas" value="<?php echo $item->PB_IDDTLTRANSAKSI ?>" />
                        <td><?php echo $item->PB_IDBERKAS ?></td>
                        <td><?php echo $item->PB_NAMABERKAS; ?></td>
                        <td>
                            <p> KERTAS : <?php echo $item->PB_KERTAS; ?></p>
                            <p> WARNA : <?php echo $item->PB_WARNA; ?></p>
                            <p> KUALITAS : <?php echo $item->PB_KUALITAS; ?></p>
                            <p> DUPLEX ? : <?php echo $item->PB_DUPLEX; ?></p>
                            <p> HALAMAN CETAK : <?php echo $item->PB_HLMNCETAK; ?></p>
                            <p> COPY : <?php echo $item->PB_COPI; ?></p>
                            <p> TUJUAN KIRIM : <?php echo $item->PB_TUJUANKIRIM; ?></p>
                            <p> TANGGAL KIRIM : <?php echo $item->PB_TGLKIRIM; ?></p>
                            <p> FITUR : <?php echo $item->PB_FITUR; ?></p>
                            <p> PAKET : <?php echo $item->PB_PAKET; ?></p>
                            <p> ORIENTATION : <?php echo $item->PB_ORIENTATION; ?></p>
                            <p> STATUS : <?php echo $item->PB_STATUS; ?></p>
                            <p> NOTE : <?php echo $item->PB_NOTE; ?></p>
                        </td> 
                        <td><?php echo $item->PB_TGLDTLTRANSAKSI; ?></td>  
                        <td><a href="<?php echo base_url().'index.php/pengguna/cancelorder/'.$item->PB_IDDTLTRANSAKSI; ?>">CANCEL</a></td>
                        </form>
                    </tr>
                    
                    <?php }
                    } ?>
                    
                </table>                
            </p>
        </p>
        
        <p>
            <script src="http://cdn.wibiya.com/Toolbars/dir_1147/Toolbar_1147646/Loader_1147646.js" type="text/javascript"></script><noscript>Toolbar Printerbudi</noscript> 
        </p>
        
    </body>
</html>
